<table class="layui-table text-center" lay-size="sm">
    <thead>
        <tr>
            <th style="width: 48px">#</th>
            <th>仓库</th>
            <th>区域</th>
            <th>货架编号</th>
            <th>货架层数</th>
            <th>状态</th>
            <th>备注</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
        {volist name="list" id="item"}
            <tr>
                <td>{$key+1}</td>
                <td>{$item.warehouse.name}</td>
                <td>{$item.area.name}</td>
                <td class="copy-text">{$item.code}</td>
                <td>{$item.level}</td>
                <td>{$item.status}</td>
                <td class="text-left">{$item.remark}</td>
                <td>
                    <a href="{:url('add',['shelf_id'=>$item['shelf_id']])}" class="layui-btn layui-btn-xs layui-btn-normal ajax-form" title="货架">编辑</a>
                </td>
            </tr>
        {/volist}
        {empty name="list"}
        <tr>
            <td colspan="8">没有数据</td>
        </tr>
        {/empty}
    </tbody>
</table>
<div class="page">
    {$page|raw}
</div>